package com.io.example.demoparent.service.impl;

import org.springframework.stereotype.Service;

/**
 * 策略模式-具体策略实现类
 * @program: demo-project
 * @ClassName GrantTypeServiceImpl
 * @description:
 * @author: 宠儿
 * @create: 2024−09-01 14:59
 * @Version 1.0
 **/
@Service("grantTypeService")
public class GrantTypeServiceImpl {

    public String redPaper(String resourceId) {
        //红包的发放方式
        return "每周末9点发放,当前的resourceId为："+resourceId;
    }

    public String shopping(String resourceId) {
        //购物券的发放方式

        return "每周三9点发放,当前的resourceId为："+resourceId;
    }

    public String QQVip(String resourceId) {
        //qq会员的发放方式
        return "每周一0点开始秒杀,当前的resourceId为："+resourceId;
    }
}
